package com.lingshu.app.utils;

import android.content.Context;

import com.lingshu.app.R;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author 于定金
 * @version 1.0
 * @Date 2024/4/23 16:31
 * @Description
 */
public class CarotidThicknessUtils {
    public static List<String> getThicknessList() {
        List<String> list = new ArrayList<>();
        for (double i = 15; i <= 200; i++) {
            double value = i / 10;
            list.add(String.format("%.1f", value));
        }
        return list;
    }

    public static List<String> getInnerThicknessList(Context context) {
        List<String> list = Arrays.stream(context.getResources().getStringArray(R.array.carotid_inner_thickness)).collect(Collectors.toList());
        return list;
    }
}
